package demo.hms.ReserveRecords.service.servicelmpl;

import demo.hms.ReserveRecords.dao.reserveRecordsDao;
import demo.hms.ReserveRecords.service.ReserveRecordsService;
import demo.hms.mybatis.entity.ReserveRecords;
import demo.hms.util.Result;
import demo.hms.util.ResultSubmit;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class ReserveRecordsServicelmpl implements ReserveRecordsService {
    @Resource
    private reserveRecordsDao dao;

    @Override
    public Result queryAll(ReserveRecords reserveRecords) {
        return ResultSubmit.success(dao.queryAll(reserveRecords));
    }

    @Override
    public int insert(ReserveRecords reserveRecords) {
        return dao.insert(reserveRecords);
    }

}
